<?php

use yii\helpers\Html;
use yii\widgets\DetailView;

/* @var $this yii\web\View */
/* @var $model backend\models\JobType */

$this->title                   = $model->name;
$this->params['breadcrumbs'][] = ['label' => "搜索管理", 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="job-type-view">

    <h1><?= Html::encode($this->title) ?></h1>

    <?= DetailView::widget([
        'model'      => $model,
        'attributes' => [
            'id',
            'name',
            'value',
            [
                'attribute' => 'type',
                'value'     => function ($model) {
                    return \common\libs\Constants::getSearchPartTypes($model->type);
                }
            ],
        ],
    ]) ?>

</div>
